package com.yxym.homework03;

public class Employee {
    //员工属性
    private String name;
    private double dailySalary;
    private int days;
    private double grade;

    public Employee(String name, double dailySalary, int days, double grade) {
        this.name = name;
        this.dailySalary = dailySalary;
        this.days = days;
        this.grade = grade;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getDailySalary() {
        return dailySalary;
    }

    public void setDailySalary(double dailySalary) {
        this.dailySalary = dailySalary;
    }

    public int getDays() {
        return days;
    }

    public void setDays(int days) {
        this.days = days;
    }

    public double getGrade() {
        return grade;
    }

    public void setGrade(double grade) {
        this.grade = grade;
    }

    //打印工资方法
    public void printSalary(){
        System.out.println(getName() + "工资：" +
                getDailySalary() * getDays() * getGrade());
    }

}
